$('#dep_arp').click(function(){page="airport_code.php";$("#dep_t").html('<select id="dep" name="dep" class="required"></select>');$("#dep").fcbkcomplete({ json_url: page,cache: false,filter_case: false,filter_hide: false,firstselected: false});});
$('#dep_sta').click(function(){page="state.php";$("#dep_t").html('<select id="dep" name="dep" class="required"></select>');$("#dep").fcbkcomplete({ json_url: page,cache: false,filter_case: false,filter_hide: false,firstselected: false});});
$('#dep_con').click(function(){page="country.php";$("#dep_t").html('<select id="dep" name="dep" class="required"></select>');$("#dep").fcbkcomplete({ json_url: page,cache: false,filter_case: false,filter_hide: false,firstselected: false});});
$('#dep_reg').click(function(){page="region.php";$("#dep_t").html('<select id="dep" name="dep" class="required"></select>');$("#dep").fcbkcomplete({ json_url: page,cache: false,filter_case: false,filter_hide: false,firstselected: false});});

$('#ret_arp').click(function(){page="airport_code.php";$("#ret_t").html('<select id="ret" name="ret" class="required"></select>');$("#ret").fcbkcomplete({ json_url: page,cache: false,filter_case: false,filter_hide: false,firstselected: false});});
$('#ret_sta').click(function(){page="state.php";$("#ret_t").html('<select id="ret" name="ret" class="required"></select>');$("#ret").fcbkcomplete({ json_url: page,cache: false,filter_case: false,filter_hide: false,firstselected: false});});
$('#ret_con').click(function(){page="country.php";$("#ret_t").html('<select id="ret" name="ret" class="required"></select>');$("#ret").fcbkcomplete({ json_url: page,cache: false,filter_case: false,filter_hide: false,firstselected: false});});
$('#ret_reg').click(function(){page="region.php";$("#ret_t").html('<select id="ret" name="ret" class="required"></select>');$("#ret").fcbkcomplete({ json_url: page,cache: false,filter_case: false,filter_hide: false,firstselected: false});});

// JavaScript Document
$(document).ready(function(){
			
	$("#ailie").fcbkcomplete({ json_url: "airline.php",cacheLength: false,filter_case: false,filter_hide: false,firstselected: false});
	
						   });

$("#test_markup").validate({
							 
		
   submitHandler: function(form) {
	   
	  	
	   
		$.ajax({
				type:"POST",
				url:"preview_markup.php",
				data:$("#test_markup").serialize(),
				cache: false,
				
				success: function(msg){
     				$("#contactArea").html(msg);
					
   						}

		});
		 $("#contactArea").html("<div style='padding-top:120px; text-align:center;'><img src='18-0.gif' align='absmiddle'><br>Testing  Markup....</div>");

   }
})
	
	